//
//  GizManager.h
//  PhnixHome
//
//  Created by Levy Xu on 2018/3/3.
//  Copyright © 2018年 Levy Xu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GizWifiSDK/GizWifiSDK.h>
#import "GizConstant.h"
#import "GizToken.h"
#import "GizWifiDevice+Phnix.h"

typedef void(^WifiFinishBlock)(GizWifiDevice *device);

#define GGizManager [GizManager sharedGizManager]

@interface GizManager : NSObject

@property(nonatomic, strong) GizToken *token;

@property(nonatomic, assign) BOOL isConnecting;

SingletonH(GizManager)

- (void)initToken;

-(void)wifiConnect:(NSString *)ssid key:(NSString *)key finishBlock:(WifiFinishBlock)finishBlock;

-(void)stopWifiConnect;

@end
